package homework02.test02;

public class OldPhone extends Phone {

    private double price;

    public OldPhone() {
    }

    public OldPhone(String brand, String color, double price) {
        super(brand, color);
        setPrice(price);
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public void show() {
        System.out.println("这部手机的牌子是:" + getBrand() + ", 颜色是:" + getColor() + ", 价格是:" + getPrice());
    }
}
